This Technical Note contains a collection of archived Q&A's relating to a specific topic--questions sent the Developer Support Center (DSC) along with answers from the DSC engineers. Current Q&A's can be found on the Macintosh Technical Q&A's web site.
Date written: 12/11/92
Last reviewed: 3/1/93
Is there a Gestalt selector for the Text Services Manager (TSM)? (I did try to look in the documentation and sample code, but wasn't able to locate it. The only thing I found so far was that sample code tests for Apple events and assumes that TSM is available.)
___
The Gestalt selector for TSM isn't yet published in the regular MPW interfaces. To check for availability of TSM, you can use the following code:
#define gestaltTSMgrVersion 'tsmv' tsmVersion = 0; tsmErr = Gestalt(gestaltTSMgrVersion, &tsmVersion); /* If gestaltUnknownErr or gestaltUndefSelectorErr was returned in tsmErr, ** then we don't have TSM available to us. */
As suggested by the symbolic names, Gestalt (if successful) returns the version number in tsmVersion.